package com.CST.entity.cb;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author ly
 * @since 2021-10-27
 */
@ApiModel(value = "强制分摊规则表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("Rule_CompelAmortization")
public class RuleCompelamortization implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "科室编号")
    @TableField("DeptCode")
    private String deptcode;

    @ApiModelProperty(value = "科室名称")
    @TableField("DeptName")
    private String deptname;

    @ApiModelProperty(value = "强制分摊至科室编号")
    @TableField("ToDeptCode")
    private String todeptcode;

    @ApiModelProperty(value = "强制分摊至科室名称")
    @TableField("ToDeptName")
    private String todeptname;

    @ApiModelProperty(value = "系数")
    @TableField("RuleCode")
    private String rulecode;

    @ApiModelProperty(value = "年")
    @TableField("ExtendField1")
    private String extendField1;

    @ApiModelProperty(value = "月")
    @TableField("ExtendField2")
    private String extendField2;

    @ApiModelProperty(value = "扩展字段3")
    @TableField("ExtendField3")
    private String extendField3;

    @ApiModelProperty(value = "是否有效")
    @ExcelProperty(value = "RowStatus")
    @TableField("RowStatus")
    private String rowStatus;


    @ApiModelProperty(value = "创建人")
    @ExcelProperty(value = "CreatedBy")
    @TableField("CreatedBy")
    private String createdBy;

    @ApiModelProperty(value = "创建时间",example = "2020-02-05 13:30:41")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @ExcelProperty(value = "CreatedOn")
    @TableField("CreatedOn")
    private String createdOn;

    @ApiModelProperty(value = "修改人")
    @ExcelProperty(value = "UpdatedBy")
    @TableField("UpdatedBy")
    private String updatedBy;

    @ApiModelProperty(value = "修改时间",example = "2020-02-05 13:30:41")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    @ExcelProperty(value = "UpdatedOn")
    @TableField("UpdatedOn")
    private String updatedOn;

    @ApiModelProperty(value = "备注")
    @TableField("Remark")
    private String remark;

    @ApiModelProperty(value = "年月[供界面选择]")
    @TableField(exist = false)
    private String yearMonth;

    @ApiModelProperty(value = "来源年")
    @TableField(exist = false)
    private Integer yearSource;

    @ApiModelProperty(value = "来源月")
    @TableField(exist = false)
    private Integer monthSource;

    @ApiModelProperty(value = "目标年")
    @TableField(exist = false)
    private Integer yearTarget;

    @ApiModelProperty(value = "目标月")
    @TableField(exist = false)
    private Integer monthTarget;

    private int PageIndex;

    private int PageSize;

    @TableField(exist = false)
    private String type;//分摊类型 Compel强制  Direct定向
}
